/ Assembly List / LJCNetCommon / HTMLBuilder / End

Namespace - LJCNetCommon


Parameters
name - The element name.
textState - The current text state values.
addIndent - Indicates if the element can be indented.

Returns

The added element end tag.

Syntax

C#
public String End(String name, TextState textState, Boolean addIndent = True)

Appends the element end tag.

Remarks

The added text will start with a new line if the builder text already has a value.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder(textState);

// Example Method:
var result = hb.GetEnd("html", textState);

// result:
// </html>

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.